﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Top.aspx.cs" Inherits="CocisWeb.Top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
<meta http-equiv="content-type"  content="text/html; charset=utf-8" />
<style type="text/css"> 
*{
	font-size: 12px; color: white
}
#logo {
	color: white
}
#logo a {
	color: white
}
form {
	margin: 0px
}
</style>
<script language="javascript" type="text/javascript">

    window.setInterval("getNewMessageNum()", 5000);
    function show() {
        var left = (screen.width - 505) / 2;
        var top = (screen.height - 464) / 2;
        window.open("Version.aspx", "Version Information", 'height=464,width=505,top=' + top + ',left=' + left + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');


    }
    function logout() {
        if (confirm("Really quit？")) {

            window.parent.location.href = "loginOut.aspx";
        }
        else {
            return;
        }
    }
    //打开计算器
    function runAppcalc() {

        (new ActiveXObject("wscript.shell")).run("calc.exe");
    }

    //打开记事本
    function runAppnotepad() {
        var shell = new ActiveXObject("WScript.shell");
        if (shell) {
            shell.run("notepad.exe", 1, true);

        }
        else {
            alert("命令已被用户禁止！");
        }

    }

    function getNewMessageNum() {


        //        var empId = document.getElementById("lbEmpId").innerText;
        //        var num = document.getElementById("lbNum");
        //        var newNum = Cocis.Ajax.GetUnReadMessageNum(empId).value;
        //        if (newNum!="0") {

        //            num.innerHTML = Cocis.Ajax.GetUnReadMessageNum(empId).value;
        //           // window.location.reload();        
        //        }


    }
    
    
</script>

<script src="js/Clock.js" type="text/javascript"></script>
<meta content="mshtml 6.00.2900.5848" name="generator" /> 
</head>
<body style="background-image: url(images/bg.gif); margin: 0px; background-repeat: repeat-x">
<form id="form1" runat="server">
  <div id="logo" style="background-image: url(images/logo.gif); background-position:right; background-repeat: no-repeat" >
    <div style="padding-right: 30px; background-position: right 50%; display: block; padding-left: 0px; background-image: url(); padding-bottom: 0px; padding-top: 3px; background-repeat: no-repeat; height: 30px; text-align: right">
      <div style="display:none;"><asp:Label ID="lbEmpId" runat="server" Text="Label"></asp:Label></div>
    </div>
    <div style="display: block; height: 20px"></div>
    <div style="background-image: url(images/bg_nav.gif); background-repeat: repeat-x; height: 30px">
      <table cellspacing=0 cellpadding=0 width="100%">
        <tbody>
          <tr>
            <td>
              <div>&nbsp;&nbsp;<span id="clock"></span></div>
            </td>
            <td align="right" width="70%">
             <span style="padding-right: 10px">
             <a  href="javascript:history.go(-1);">
              <img src="images/nav_back.gif" align="middle" border="0" />Backward<a href="javascript:history.go(1);"><img src="images/nav_forward.gif" align="middle" border="0" />Foreward</a> 
<%--              <a href="Password.aspx" target=mainFrame>
              <img src="images/nav_resetpassword.gif" align=absmiddle border=0>Change Password</a>--%>
              <img src="images/menu_seprator.gif" align="middle" />
                <a href="ManageSearch/CommonSearch.aspx" target="mainFrame">Return HomePage</a>
                <img align="middle" src="images/menu_seprator.gif" /> <a href="Index.aspx" 
                    target="_parent">Logout</a>&nbsp;
            </span>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
 <script type="text/javascript">
     var clock = new Clock();
     clock.display(document.getElementById("clock"));
</script>

</form>
 
</body>
</html>

